<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <ui:composition template="index2.xhtml"> 

        <ui:define name="content"> 

            <h:body >

                <h:form id="formexibe" >

                    <p:dataList value="#{postHandler.listaPosts()}" var="p">
                        #{p.titulo}<br />
                        <h:outputText  escape="false" value="#{p.corpo}"  /><br />
                        #{p.id_usuario.nome}<br />

                        
                        
                        <a href="#{comentarioHandler.comentar(p)}">
                            Comentar </a>
                       
                            <!--<f:setPropertyActionListener target="{comentarioHandler.p}" value="{p}" />-->
                        
                        <hr />


                    </p:dataList> 


                </h:form>

                <!--Deixe seu Comentário:</br>-->
                <!--<p:inputTextarea rows="10" cols="50" completeMethod="{autoCompleteBean.completeArea}" queryDelay="750" minQueryLength="4" />-->


            </h:body>
        </ui:define>
    </ui:composition>
</html>
